package com.ithuameng.admin.app.system.model.admin.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ithuameng.admin.enums.JobStatus;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 定时任务 VO
 */
@Data
public class QuartzJobVo {

    private String id;

    /**
     * 任务类名称
     */
    private String jobClassName;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * Cron 表达式
     */
    private String cronExpression;

    /**
     * 参数
     */
    private String parameter;

    /**
     * 描述
     */
    private String description;

    /**
     * 任务状态
     */
    private JobStatus status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
